<?
class Name1
{
	function my_name()
	{
		$class = new ReflectionClass($this);

		echo $class->getName();
	}
}

$c=new Name1();
$c->my_name();